package org.example.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UserRegisterParam {
    @NotBlank(message = "账号不能为空!!!")
    private String account;
    @NotBlank(message = "密码不能为空!!!")
    @Length(min = 6,max = 18,message = "密码长度为6到18位")
    private String password;
}
